package it.koutifaris.travianmap.dal.sqlservices.dumpimporter;

import it.koutifaris.travianmap.mapsqlparser.MapSqlEntry;
import junit.framework.Assert;

class EntryVerifier {

	private final MapSqlEntry mockSqlEntry;

	public EntryVerifier(MapSqlEntry mockSqlEntry) {
		this.mockSqlEntry = mockSqlEntry;
	}

	public void verifyAlliance(int allianceId) {
		Assert.assertEquals(mockSqlEntry.getAllianceId(), allianceId);
	}

	public void verifyPlayerId(int playerId) {
		Assert.assertEquals(mockSqlEntry.getPlayerId(), playerId);
	}

	public void verifyPlayerName(String playerName) {
		Assert.assertEquals(mockSqlEntry.getPlayerName(), playerName);
	}

	public void verifyTribe(int tribeId) {
		Assert.assertEquals(mockSqlEntry.getTribeId(), tribeId);
	}

	public void verifyVillageId(int villageId) {
		Assert.assertEquals(mockSqlEntry.getVillageId(), villageId);
	}

	public void verifyVillageName(String villageName) {
		Assert.assertEquals(mockSqlEntry.getVillageName(), villageName);
	}

	public void verifyVillagePopulation(int population) {
		Assert.assertEquals(mockSqlEntry.getVillagePopulation(), population);
	}

	public void verifyVillageX(int x) {
		Assert.assertEquals(mockSqlEntry.getX(), x);
	}

	public void verifyVillageY(int y) {
		Assert.assertEquals(mockSqlEntry.getY(), y);
	}
}
